package com.lagou.edu.service;

import com.lagou.edu.anno.Component;
import com.lagou.edu.bean.BeanPostProcessor;

/**
 * @author wsz
 * @date 2021/10/21 9:02
 **/
@Component
public class PostProcessorService implements BeanPostProcessor {

    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) {
        System.out.println("postProcessBeforeInitialization");
        System.out.println(bean);
        System.out.println(beanName);
        return bean;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) {
        System.out.println("postProcessAfterInitialization");
        System.out.println(bean);
        System.out.println(beanName);
        return bean;
    }
}
